extends "../cTDZ_2_3_1/cTDZ_2_3_1.gd"
func _info():
	pass
var baseId = ""
var cds
func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "骷髅链战"
	lv = 4
	attCoe.atkRan = 3
	attCoe.atk *= 1.5
	attCoe.maxHp *= 1.5
	cds = 7
	if sys.test:cds = 1.5
	addCdSkill("bczj1",cds)
	addSkillTxt("暴跳扣锤：跳到当前敌人附近，对其造成（200+20%）真伤（可暴击），若造成伤害之后敌方生命低于10%则斩杀，随后切换目标并刷新当前技能[cd:7秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == 'bczj1' && aiCha:
		cst("暴跳扣锤","000000",position)
		var tmp = aiCha
		jump(aiCha,self)
		aiCha = tmp
		hurtChara(aiCha,att.atk * 0.2 + 200,Chara.HurtType.REAL,Chara.AtkType.SKILL)
		if aiCha:
			if aiCha.att.maxHp * 0.1 > aiCha.att.hp:
				aiCha.att.hp = 0
				hurtChara(aiCha,0,Chara.HurtType.REAL,Chara.AtkType.EFF)
				yield(reTimer(0.01),"timeout")
				getSkill("bczj1").nowTime = cds
		else:
			getSkill("bczj1").nowTime = cds